<template>
    <div class="layout-root  my-modal smalll-form focus-ico">
        <a-row  style="width: 100%;height: 100%; padding: 10px;background-color: rgb(229 229 229 / 50%);" justify="center">
            <a-col :span="12">
                <a-row  style="width: 100%;height: 33%;" >
                    <a-row  style="width: 100%;height: 10%;" >
                        <span class="center">控制点匹配设置</span>
                    </a-row>
                    <a-row  style="width: 100%;height:90%;" >
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="分块(列*行)">
                                    <a-col :span="10">
                                        <a-input v-model:value="$store.state.sets.system_ctr.common_blkWid" />
                                    </a-col>
                                    <a-col :span="2" style="text-align: center;">
                                        <span >*</span>
                                    </a-col>
                                    <a-col :span="10">
                                        <a-input v-model:value="$store.state.sets.system_ctr.common_blkHei" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="粗匹配">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_ctr.common_isCoarseMatch" :options="$store.state.yes_not" size="small"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="金字塔层数">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.common_PyrScale" :disabled="$store.state.sets?.system_ctr?.ctr_isCoarseMatch==0"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="匹配方法">
                                    <a-col :span="22" class="smale-select" >
                                        <a-select 
                                        v-model:value="$store.state.sets.system_ctr.ctr_method" 
                                        style="width: 150px;" 
                                        :options="$store.state.matchMethods"
                                        dropdownClassName="smale-select-span"
                                        size="small" 
                                        :field-names="{ label: 'name', value: 'value' }">
                                        </a-select>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="搜索窗口" v-if="$store.state.sets?.system_ctr?.ctr_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_lscorr_pixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="像素级相关阈值" v-if="$store.state.sets?.system_ctr?.ctr_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_lscorr_pixelCorr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="单块匹配点数" v-if="$store.state.sets?.system_ctr?.ctr_method=='sift'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_sift_maxMatchInBlk" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="搜索窗口" v-if="$store.state.sets?.system_ctr?.ctr_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_cosi_pixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="信噪比" v-if="$store.state.sets?.system_ctr?.ctr_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_cosi_snr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="方向图区" v-if="$store.state.sets?.system_ctr?.ctr_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_geocorr_hogBins" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="模板窗口" v-if="$store.state.sets?.system_ctr?.ctr_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_geocorr_tempWin" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="信噪比" v-if="$store.state.sets?.system_ctr?.ctr_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_geocorr_snr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="最大特征点数">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.common_maxFeaturesInBlk" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="仿射限差">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.common_affine_tolerance" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="粗匹配相关阈值">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.common_coarse_corr_tolerance" :disabled="!($store.state.sets?.system_ctr?.ctr_isCoarseMatch==1 && $store.state.sets?.system_ctr?.ctr_method=='lscorr')"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="">
                                </a-form-item>
                                <a-form-item label="匹配窗口"  v-if="$store.state.sets?.system_ctr?.ctr_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_lscorr_subpixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="子像素级相关阈值"  v-if="$store.state.sets?.system_ctr?.ctr_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_lscorr_subpixelCorr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="匹配窗口" v-if="$store.state.sets?.system_ctr?.ctr_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_cosi_subpixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="像素统计窗口" v-if="$store.state.sets?.system_ctr?.ctr_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_geocorr_statisWin" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="搜索窗口" v-if="$store.state.sets?.system_ctr?.ctr_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ctr.ctr_geocorr_searchWin" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                </a-row>
                <a-row  style="width: 100%;height: 33%;">
                    <a-row  style="width: 100%;height: 10%;" >
                        <span class="center">相邻CCD匹配设置</span>
                    </a-row>
                    <a-row  style="width: 100%;height:90%;" >
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="模型预测点位">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_ccd.common_useModelPredict" :options="$store.state.yes_not" size="small"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="匹配方法">
                                    <a-col :span="22" class="smale-select" >
                                        <a-select 
                                        v-model:value="$store.state.sets.system_ccd.ccd_method" 
                                        style="width: 150px;" 
                                        :options="$store.state.matchMethods"
                                        dropdownClassName="smale-select-span"
                                        size="small" 
                                        :field-names="{ label: 'name', value: 'value' }">
                                        </a-select>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="分块数" v-if="$store.state.sets?.system_ccd?.ccd_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_lscorr_blkNum" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="搜索窗口" v-if="$store.state.sets?.system_ccd?.ccd_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_lscorr_pixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="像素级相关阈值" v-if="$store.state.sets?.system_ccd?.ccd_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_lscorr_pixelCorr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="分块数" v-if="$store.state.sets?.system_ccd?.ccd_method=='sift'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_sift_blkNum" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="单块匹配点数" v-if="$store.state.sets?.system_ccd?.ccd_method=='sift'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_sift_maxMatchInBlk" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="分块数" v-if="$store.state.sets?.system_ccd?.ccd_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_cosi_blkNum" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="搜索窗口" v-if="$store.state.sets?.system_ccd?.ccd_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_cosi_pixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="信噪比" v-if="$store.state.sets?.system_ccd?.ccd_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_cosi_snr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="仿射限差">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.common_affine_tolerance" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="">
                                </a-form-item>
                                <a-form-item label="最大特征点数" v-if="$store.state.sets?.system_ccd?.ccd_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_lscorr_maxFeaturesInBlk" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="匹配窗口" v-if="$store.state.sets?.system_ccd?.ccd_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_lscorr_subpixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="子像素级相关阈值" v-if="$store.state.sets?.system_ccd?.ccd_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_lscorr_subpixelCorr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="最大特征点数" v-if="$store.state.sets?.system_ccd?.ccd_method=='sift'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_sift_maxFeaturesInBlk" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="最大特征点数" v-if="$store.state.sets?.system_ccd?.ccd_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_cosi_maxFeaturesInBlk" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="匹配窗口" v-if="$store.state.sets?.system_ccd?.ccd_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_ccd.ccd_cosi_subpixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                </a-row>
                <a-row  style="width: 100%;height: 33%;">
                    <a-row  style="width: 100%;height: 10%;" >
                        <span class="center">多影像匹配设置</span>
                    </a-row>
                    
                    <a-row  style="width: 100%;height:90%;" >
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="块大小(宽*高)">
                                    <a-col :span="10">
                                        <a-input v-model:value="$store.state.sets.system_mul.common_blkWid" />
                                    </a-col>
                                    <a-col :span="2" style="text-align: center;">
                                        <span >*</span>
                                    </a-col>
                                    <a-col :span="10">
                                        <a-input v-model:value="$store.state.sets.system_mul.common_blkHei" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="单景最大点数">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.common_max_match_per_image" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="金字塔粗匹配">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_mul.common_usePynCoarseMatch" :options="$store.state.yes_not" size="small"
                                        :disabled="$store.state.sets?.system_mul?.mul_method=='sift'"
                                        />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="匹配方法">
                                    <a-col :span="22" class="smale-select" >
                                        <a-select 
                                        v-model:value="$store.state.sets.system_mul.mul_method" 
                                        style="width: 150px;" 
                                        :options="$store.state.matchMethods"
                                        dropdownClassName="smale-select-span"
                                        size="small" 
                                        :field-names="{ label: 'name', value: 'value' }">
                                        </a-select>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="搜索窗口" v-if="$store.state.sets?.system_mul?.mul_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_lscorr_pixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="像素级相关阈值" v-if="$store.state.sets?.system_mul?.mul_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_lscorr_pixelCorr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="单块匹配点数" v-if="$store.state.sets?.system_mul?.mul_method=='sift'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_sift_maxMatchInBlk" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="搜索窗口" v-if="$store.state.sets?.system_mul?.mul_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_cosi_pixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="信噪比" v-if="$store.state.sets?.system_mul?.mul_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_cosi_snr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="方向图区" v-if="$store.state.sets?.system_mul?.mul_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_geocorr_hogBins" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="模板窗口" v-if="$store.state.sets?.system_mul?.mul_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_geocorr_tempWin" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="信噪比" v-if="$store.state.sets?.system_mul?.mul_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_geocorr_snr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="最大特征点数">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.common_maxFeaturesInBlk" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="仿射限差">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.common_affine_tolerance" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="金字塔层数">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.common_PynLevel" :disabled="($store.state.sets?.system_mul.mul_usePynCoarseMatch==0 || $store.state.sets?.system_mul.mul_method=='sift')"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="平差剃点阈值(倍率)">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.common_ba_del_sigma_ratio" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="匹配窗口"  v-if="$store.state.sets?.system_mul.mul_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_lscorr_subpixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="子像素相关阈值"  v-if="$store.state.sets?.system_mul.mul_method=='lscorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_lscorr_subpixelCorr" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="匹配窗口" v-if="$store.state.sets?.system_mul.mul_method=='cosi'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_cosi_subpixelWindow" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="像素统计窗口" v-if="$store.state.sets?.system_mul.mul_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_geocorr_statisWin" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                                <a-form-item label="搜索窗口" v-if="$store.state.sets?.system_mul.mul_method=='geocorr'">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_mul.mul_geocorr_searchWin" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                </a-row>
            </a-col>
            <a-col :span="12">
                <a-row  style="width: 100%;height: 100%;" class="right-span">
                    <a-row  style="width: 100%;height: 20px;text-align: center;">
                        <a-col :span="21" style="width: 100%;">
                            <span class="center">定标平差设置</span>
                        </a-col>
                        <a-col :span="3" style="width: 100%;">
                            <a-button type="primary" @click="save_set" size="small">保存</a-button>
                        </a-col>
                    </a-row>
                    <a-divider>内定标</a-divider>
                    <a-row  style="width: 100%;" >
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="沿轨阶数">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_type_Interior_AlongOrder" size="small"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="使用DEM">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_cal.cal_type_Interior_IsUsedDEM" :options="$store.state.yes_not" size="small"/>
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="垂轨阶数">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_type_Interior_AcrossOrder" />
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                    <a-divider>外定标</a-divider>
                    <a-row  style="width: 100%;" >
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="使用DEM">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_cal.cal_type_Exterior_IsUsedDEM" :options="$store.state.yes_not" size="small"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="时间间隔(秒)">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_type_Exterior_TimeInterval" :disabled="$store.state.sets?.system_cal.cal_Exterior_dynamic_skeleton==1"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="提取骨架">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_cal.cal_type_Exterior_dynamic_skeleton" :options="$store.state.yes_not" size="small"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="道格拉斯阈值">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_type_Exterior_douglas" :disabled="$store.state.sets?.system_cal.cal_type_Exterior_dynamic_skeleton==0"/>
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="偏移角数">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_type_Exterior_NumberofAngles" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="最小点数">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_type_Exterior_minTps" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="平滑滤波半径">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_type_Exterior_moveAveSmoothWin" :disabled="$store.state.sets?.system_cal.cal_type_Exterior_dynamic_skeleton==0"/>
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                    <a-divider>定标共用</a-divider>
                    <a-row  style="width: 100%;" >
                        <a-col :span="24" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 3 }" :wrapper-col="{ span: 21 }" autocomplete="off" class="smale-form">
                                <a-form-item label="外内交替次数" >
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_type_Itera_IterationNumber" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="控制DEM">
                                    <a-col :span="22">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_controlDEM" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                    <a-col :span="1">
                                        <a-button @click="add_control_dem_dir" style="" size="small">
                                            <template #icon>
                                                <plus-outlined />
                                            </template>
                                        </a-button>
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                    <a-divider>解算</a-divider>
                    <a-row  style="width: 100%;" >
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="最小交会角">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_common_min_intersection_angle" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="解算方法">
                                    <a-col :span="22" class="smale-select" >
                                        <a-select 
                                        v-model:value="$store.state.sets.system_cal.cal_params_solve_method" 
                                        style="width: 150px;" 
                                        :options="$store.state.cal_solve_methods"
                                        dropdownClassName="smale-select-span"
                                        size="small" 
                                        :field-names="{ label: 'name', value: 'value' }">
                                        </a-select>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="阻尼阀值">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_lambda" :disabled="$store.state.sets?.system_cal?.cal_solve_method=='iccv'"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="选权迭代">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_cal.cal_params_isUpdate_weight" :options="$store.state.yes_not" size="small"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="定权系数">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_danish_coef"  :disabled="$store.state.sets?.system_cal?.cal_isUpdate_weight==0"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="采用虚拟控制点">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_cal.cal_params_use_vGcp" :options="$store.state.yes_not" size="small"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="虚拟控制权缩放比">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_vgcp_weight_scale" :disabled="$store.state.sets?.system_cal?.cal_use_vGcp==0"/>
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="最大迭代数">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_max_iteration_num" />
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="iccv迭代次数">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_iccv_solve_times" :disabled="$store.state.sets?.system_cal?.cal_solve_method=='re'"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="">
                                </a-form-item>
                                <a-form-item label="最小值权">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_min_weight" :disabled="$store.state.sets?.system_cal?.cal_isUpdate_weight==0"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="">
                                </a-form-item>
                                <a-form-item label="单景虚拟控制数">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_number_of_vgcp" :disabled="$store.state.sets?.system_cal?.cal_use_vGcp==0"/>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="高程迭代限差">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_dh" />
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                    <a-row  style="width: 100%;" >
                        <a-col :span="24" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 3 }" :wrapper-col="{ span: 21 }" autocomplete="off" class="smale-form">
                                <a-form-item label="交会辅助DEM">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_cal.cal_params_baseDEM" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                    <a-col :span="1">
                                        <a-button @click="add_intersection_dem_dir" style="" size="small">
                                            <template #icon>
                                                <plus-outlined />
                                            </template>
                                        </a-button>
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                    <a-divider>其他设置</a-divider>
                    <a-row  style="width: 100%;" >
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }" autocomplete="off" class="smale-form">
                                <a-form-item label="线程数">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_common.threadNum" />
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                        <a-col :span="12" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 10 }" :wrapper-col="{ span: 14 }" autocomplete="off" class="smale-form">
                                <a-form-item label="多景匹配中间结果是否删除">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_common.isDel" :options="$store.state.yes_not" size="small"/>
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                    <a-row  style="width: 100%;" >
                        <a-col :span="24" style="width: 100%;">
                            <a-form :model="nuform" name="basic" :label-col="{ span: 3 }" :wrapper-col="{ span: 21 }" autocomplete="off" class="smale-form">
                                <a-form-item label="辅助DEM">
                                    <a-col :span="22" class="smale-radio">
                                        <a-input v-model:value="$store.state.sets.system_common.auxDEM" />
                                    </a-col>
                                    <a-col :span="1"></a-col>
                                    <a-col :span="1">
                                        <a-button @click="add_a_dem_dir" style="" size="small">
                                            <template #icon>
                                                <plus-outlined />
                                            </template>
                                        </a-button>
                                    </a-col>
                                </a-form-item>
                                <a-form-item label="定标对象">
                                    <a-col :span="22" class="smale-radio">
                                        <a-radio-group v-model:value="$store.state.sets.system_common.targetPlanet" :options="$store.state.targetPlanets" size="small"/>
                                    </a-col>
                                </a-form-item>
                            </a-form>
                        </a-col>
                    </a-row>
                </a-row>
            </a-col>
        </a-row>
    </div>
    <modal_select_server_dir />
</template>
<script>
import { defineAsyncComponent,watch, reactive } from 'vue'
export default {
  data() {
    return {
        nuform:{},//无用 model form
        mitt_modal_select_server_dir_back_id:"",
    }
  },
  components: {
    modal_select_server_dir: defineAsyncComponent(() => import('@/components/common/modal_select_server_dir.vue')),
  },
  beforeUnmount() {
    this.$mitt.off('modal_select_server_dir_back',this.mitt_modal_select_server_dir_back_id);
  },
  mounted() {
    this.mitt_modal_select_server_dir_back_id=this.$mitt.on('modal_select_server_dir_back', (type_select_dir) => {
      if (type_select_dir.type == 'cdem') {
        this.$store.state.sets.system_cal.cal_params_controlDEM = type_select_dir.val;
      }
      else if (type_select_dir.type == 'adem') {
        this.$store.state.sets.system_common.auxDEM= type_select_dir.val
      }
      else if (type_select_dir.type == 'idem') {
        this.$store.state.sets.system_cal.cal_params_baseDEM = type_select_dir.val
      } 
    },this?.$?.uid);
  },
  
  methods: {
    add_control_dem_dir(){
        this.$mitt.emit('show_modal_select_server_dir', {
            type: 'cdem',
            showfile: false,
            avtive_dir: this.$store.state.sets.system_cal.cal_params_controlDEM,
            showfile_filter: ['.img', '.tif', '.tiff'],
        },this?.$?.uid);
    },
    add_intersection_dem_dir(){
        this.$mitt.emit('show_modal_select_server_dir', {
            type: 'idem',
            showfile: false,
            avtive_dir: this.$store.state.sets.system_cal.cal_params_baseDEM,
            showfile_filter: ['.img', '.tif', '.tiff'],
        },this?.$?.uid);
    },
    add_a_dem_dir(){
        this.$mitt.emit('show_modal_select_server_dir', {
            type: 'adem',
            showfile: false,
            avtive_dir: this.$store.state.sets?.system_common.auxDEM,
            showfile_filter: ['.img', '.tif', '.tiff'],
        },this?.$?.uid);
    },
    async save_set(){
        //2个平差剃点参数应该是一致的，但是界面不单独设置 直接赋值了
        this.$store.state.sets.system_mul.common_repro_del_sigma_ratio=this.$store.state.sets.system_mul.common_ba_del_sigma_ratio
        let set_result=await this.$apis.update_set({
            data:JSON.stringify(this.$store.state.sets)
        })
        if(set_result){
            this.$message.success("更新参数成功")
        }
        else{
            this.$message.error("更新参数失败")
        }
    },
  },
}
</script>